 import {RecordParams,Record} from './type'
 import {get,post} from '../../utils/request'
 export const getList=(params:RecordParams)=>{

    return get("api/records/list",params);

}
export const addRecord=(data:Record)=>{

    return post("api/records/add",data);

}
export const getRecord=(id:number)=>{

    return get("api/records/get",{id});

}